package com.allprs.hmcs.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author wjf
 * @描述:  设备信息实体
 * @date 2024年06月14日
 * @version: 1.0
 */

@Data
@TableName(value = "device",schema = "city")
public class Device {

    @ApiModelProperty(value = "主键")
    private int id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "地址")
    private String adress;

    @ApiModelProperty(value = "编号")
    private String number;

    @ApiModelProperty(value = "bz")
    private String bz;

    @ApiModelProperty(value = "坐标x")
    private String x;

    @ApiModelProperty(value = "坐标Y")
    private String y;

    @ApiModelProperty(value = "坐标z")
    private String z;

    @ApiModelProperty(value = "设备地址")
    private String deviceUrl;

    @ApiModelProperty(value = "设备用途")
    private String purpose;

    @ApiModelProperty(value = "运行状态")
    private String status;

    @ApiModelProperty(value = "水位")
    private String waterLevel;

    @ApiModelProperty(value = "常用水位")
    private String normalWaterLevel;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;

    @ApiModelProperty(value = "隐患列表")
    @TableField(exist = false)
    private List<DevicePitfall> pitfallList;


}
